﻿using System.Collections.Generic;

namespace ReAnimation.Helpers.Common
{
    public static class EnumerableHelper
    {
        public delegate void ForEachBody<T>(T obj);
        public static void ForEach<T>(this IEnumerable<T> enumeration,ForEachBody<T> body)
        {
            foreach (var v in enumeration)
            {
                body(v);
            }
        }
    }
}
